package com.city.lambda.syntax4;

import com.city.lambda.Student;

/**
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2020/4/20
 * Time: 13:28
 * Description: No Description
 */
public class Syntax4 {
    public static void main(String[] args) {
        StudentInt studentInt=()->new Student();

        //构造方法引用
        StudentInt studentInt1=Student::new;//通过抽象方法参数个数来识别调用的时无参还是有参

        //如果Student getStudent(int a,int b); StudentInt studentInt1=Student::new;则有参
    }
}
//对象返回值接口
interface StudentInt{
    Student getStudent();
}